Suppress Docker build output when --quiet flag is set#521
Merged
Conversation
Pass `progress=False` to `docker.build` and `docker.buildx.bake` when the configured log level is `ERROR` or higher, so buildx progress output is captured instead of streamed to stderr. The default and `--verbose` log levels continue to use `progress="auto"`. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
bschwedler
approved these changes
May 12, 2026
bschwedler
left a comment
Contributor
There was a problem hiding this comment.
Thanks for making this change.
Though running bakery build --quiet now feels a little too quiet. 😀
Contributor
Author
Haha we could always add a little spinner in the future, but at least the behavior is as intended now. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
progress=Falsetodocker.buildanddocker.buildx.bakewhenSETTINGS.log_level >= logging.ERROR(i.e. the user passed--quiet), otherwise useprogress="auto".assert_called_once_with(**expected_build_args)test expectations intest_image_target.pyandtest_bake.pyto include the newprogresskwarg.Test plan
uv run pytest -m build test/image/test_image_target.py test/image/bake/test_bake.pypasses (15/15).bakery build --quiet ...and confirm buildx progress output is suppressed.bakery build ...(default) andbakery build --verbose ...and confirm progress output is unchanged.🤖 Generated with Claude Code